main{
    div{
        border: solid 1px black;
        padding: 1rem;
        display: none;
    }
    #stu:checked ~ div.stu{
        display: block;
    }
    #teacher:checked ~ div.teacher{
        display: block;
    }
}